import type { AxiosRequestConfig } from 'axios';
import type { ClassifyWallList } from './classify';
import { request } from '@/utils/request';

export const apiSearchWall = (
  data: { keyword: string; pageSize?: number; pageNum?: number },
  config?: Omit<AxiosRequestConfig, 'data'>
) => {
  return request<ClassifyWallList[]>('/searchWall', {
    data,
    ...config,
  });
};
